package com.bl.weilan.dao.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Data
@Table(name = "trade_chart")
@ApiModel(value = "TradeChartEntity", description = "行业图表数据")
@DynamicInsert
@DynamicUpdate
public class TradeChartEntity {
    @Id
    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "行业id")
    @Column(name = "trade_id")
    private String tradeId;

    @ApiModelProperty(value = "图类型 bar 柱状图  pie 饼状图")
    private String type;

    @ApiModelProperty(value = "单位")
    private String unit;

    @ApiModelProperty(value = "投资事件 投资金额 总估值 投资轮次 成立时间 成立地点")
    private String name;

    @ApiModelProperty(value = "创建时间")
    @Column(name = "create_time")
    private Date createTime;

    @ApiModelProperty(value = "创建时间")
    @Column(name = "update_time")
    private Date updateTime;
}
